package com.packenius.library.xspdf;

/**
 * Direction, used by transition styles SPLIT and BLINDS.
 */
public enum XSDirection implements XSPdfContent {
  /**
   * Horizontal line style.
   */
  Horizontal,

  /**
   * Vertical line style.
   */
  Vertical;

  /**
   * @see com.packenius.library.xspdf.XSPdfContent#getPdfContent(XSPDF)
   */
  public String getPdfContent(XSPDF xsPDF) {
    switch (this) {
    case Horizontal:
      return ""; // Default.
    case Vertical:
      return "/Dm/V";
    }
    throw new XSPdfException("Impossible getPdfContent()!");
  }
}
